<div class="user-profile">
  <div class="dropdown user-pro-body">
    <div>
      <%= image_tag(@restaurant.attachment.url class: 'img-circle') %>
    </div>
    <a href="#" class="dropdown-toggle u-dropdown" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <%= @restaurant.name %><span class="caret"></span>
    </a>
    <ul class="dropdown-menu animated flipInY">
        <li><a href="/restaurants/info/show"><i class="ti-user"></i> 餐厅信息</a></li>
        <li><a href="/restaurants/messages"><i class="ti-email"></i> 消息中心</a></li>
        <li role="separator" class="divider"></li>
        <li><a href="/restaurants/new_password"><i class="ti-settings"></i>修改密码</a></li>
        <li role="separator" class="divider"></li>
        <li><a href="/restaurants/sessions/logout"><i class="fa fa-power-off"></i>登出</a></li>
    </ul>
  </div>
</div>